<?php

namespace app\adminapi\model\log;

use app\common\model\BaseModel;
use app\common\traits\OperatorTrait;
use think\model\concern\SoftDelete;

class SysLoginLogDO extends BaseModel
{
    protected $autoWriteTimestamp = false;

    protected $name = 'login_log';
    protected $table = 'sys_login_log';
    protected $pk = 'log_id';

    // 时间格式
    protected $dateFormat = 'Y-m-d H:i:s';

    protected $type = [
        'login_time' => 'datetime'
    ];

    protected $schema = [
        'log_id' => 'int',
        'user_name' => 'string',
        'ip_addr' => 'string',
        'login_location' => 'string',
        'browser' => 'string',
        'os' => 'string',
        'status' => 'int',
        'msg' => 'string',
        'login_time' => 'datetime'
    ];
}